package com.woniuxy;

import io.jsonwebtoken.JwtBuilder;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;

import java.util.Date;

public class JWTTest {
    public static void main(String[] args) {
        JwtBuilder builder = Jwts.builder().setId("83").setSubject("管理员").setIssuedAt(new Date())
                .signWith(SignatureAlgorithm.HS256, "woniuxy");
        System.out.println(builder.compact());
    }
}
